function foo(n){for(var i="now is the time",t=0;t<n.length;++t)!n[t]&&i&&bar(function(){alert(i)})}